package emm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.BoxLayout;
import javax.swing.JToolBar;
import java.awt.GridLayout;
import java.awt.FlowLayout;
import java.awt.CardLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JInternalFrame;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextField;
import java.awt.Component;
import java.awt.ComponentOrientation;
import javax.swing.border.TitledBorder;
import javax.swing.border.MatteBorder;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.UIManager;
import javax.swing.SwingConstants;
import javax.swing.JSeparator;
import javax.swing.JEditorPane;
import javax.swing.JSlider;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.SystemColor;

public class MitgliedAnlegen extends JFrame {

	private JPanel contentPane;
	private JLabel lblAnrede;
	private JLabel lblName;
	private JLabel lblVorname;
	private JLabel lblStrasse;
	private JLabel lblPlzOrt;
	private JLabel lblTelefonnummer;
	private JLabel lblMobilnummer;
	private JLabel lblGeburtsdatum;
	private JComboBox cbAnrede;
	private JTextField tfName;
	private JTextField tfVorname;
	private JTextField tfStrasse;
	private JTextField tfPlz;
	private JTextField tfGeburtsdatum;
	private JTextField tfTelefon;
	private JTextField tfMobilnummer;
	private JTextField tfOrt;
	private JLabel lblEmail;
	private JTextField tfEmail;
	private JLabel lblKontonr;
	private JLabel lblBlz;
	private JLabel lblKreditinstitut;
	private JPanel panel_1;
	private JPanel panel_2;
	private JTextField tfKontonr;
	private JTextField textField;
	private JTextField textField_1;
	private JPanel lblStatus;
	private JLabel label;
	private JLabel lblDatum;
	private JLabel lblTest;
	private JPanel panel;
	private JButton btnSpeichern;

	
	

	/**
	 * Create the frame.
	 */
	public MitgliedAnlegen() {
		setTitle("Mitglied anlegen");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 700, 500);
		contentPane = new JPanel();
		contentPane.setBackground(SystemColor.menu);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		contentPane.add(getPanel_1());
		contentPane.add(getPanel_2());
		contentPane.add(getLblStatus());
		contentPane.add(getLabel_1_2());
		contentPane.add(getPanel());
		contentPane.add(getBtnSpeichern());
		setVisible(true);
	}
	private JLabel getLabel_1() {
		if (lblAnrede == null) {
			lblAnrede = new JLabel("Anrede:");
			lblAnrede.setBounds(6, 19, 112, 14);
			lblAnrede.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblAnrede;
	}
	private JLabel getLblName() {
		if (lblName == null) {
			lblName = new JLabel("Name:");
			lblName.setBounds(6, 44, 112, 14);
			lblName.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblName;
	}
	private JLabel getLblVorname() {
		if (lblVorname == null) {
			lblVorname = new JLabel("Vorname:");
			lblVorname.setBounds(6, 69, 112, 14);
			lblVorname.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblVorname;
	}
	private JLabel getLblStrasse() {
		if (lblStrasse == null) {
			lblStrasse = new JLabel("Stra\u00DFe:");
			lblStrasse.setBounds(6, 94, 112, 14);
			lblStrasse.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblStrasse;
	}
	private JLabel getLblPlzOrt() {
		if (lblPlzOrt == null) {
			lblPlzOrt = new JLabel("PLZ:  Ort:");
			lblPlzOrt.setBounds(6, 119, 106, 14);
			lblPlzOrt.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblPlzOrt;
	}
	private JLabel getLblTelefonnummer() {
		if (lblTelefonnummer == null) {
			lblTelefonnummer = new JLabel("Telefon:");
			lblTelefonnummer.setBounds(6, 169, 112, 14);
			lblTelefonnummer.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblTelefonnummer;
	}
	private JLabel getLblMobilnummer() {
		if (lblMobilnummer == null) {
			lblMobilnummer = new JLabel("Mobil:");
			lblMobilnummer.setBounds(6, 194, 112, 14);
			lblMobilnummer.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblMobilnummer;
	}
	private JLabel getLblGeburtsdatum() {
		if (lblGeburtsdatum == null) {
			lblGeburtsdatum = new JLabel("Geburtsdatum:");
			lblGeburtsdatum.setBounds(6, 144, 106, 14);
			lblGeburtsdatum.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 12));
		}
		return lblGeburtsdatum;
	}
	private JComboBox getCbAnrede() {
		if (cbAnrede == null) {
			cbAnrede = new JComboBox();
			cbAnrede.setBounds(220, 16, 64, 20);
			cbAnrede.setMaximumRowCount(2);
			cbAnrede.setModel(new DefaultComboBoxModel(new String[] {"Herr", "Frau"}));
			cbAnrede.setSelectedIndex(0);
		}
		return cbAnrede;
	}
	private JTextField getTfName() {
		if (tfName == null) {
			tfName = new JTextField();
			tfName.setBounds(128, 41, 156, 20);
			tfName.setColumns(10);
		}
		return tfName;
	}
	private JTextField getTfVorname() {
		if (tfVorname == null) {
			tfVorname = new JTextField();
			tfVorname.setBounds(128, 66, 156, 20);
			tfVorname.setColumns(10);
		}
		return tfVorname;
	}
	private JTextField getTfStrasse() {
		if (tfStrasse == null) {
			tfStrasse = new JTextField();
			tfStrasse.setBounds(128, 91, 156, 20);
			tfStrasse.setColumns(10);
		}
		return tfStrasse;
	}
	private JTextField getTfPlz() {
		if (tfPlz == null) {
			tfPlz = new JTextField();
			tfPlz.setBounds(128, 116, 50, 20);
			tfPlz.setColumns(10);
		}
		return tfPlz;
	}
	private JTextField getTfGeburtsdatum() {
		if (tfGeburtsdatum == null) {
			tfGeburtsdatum = new JTextField();
			tfGeburtsdatum.setBounds(128, 141, 156, 20);
			tfGeburtsdatum.setColumns(10);
		}
		return tfGeburtsdatum;
	}
	private JTextField getTfTelefon() {
		if (tfTelefon == null) {
			tfTelefon = new JTextField();
			tfTelefon.setBounds(128, 166, 156, 20);
			tfTelefon.setColumns(10);
		}
		return tfTelefon;
	}
	private JTextField getTfMobilnummer() {
		if (tfMobilnummer == null) {
			tfMobilnummer = new JTextField();
			tfMobilnummer.setBounds(128, 191, 156, 20);
			tfMobilnummer.setColumns(10);
		}
		return tfMobilnummer;
	}
	private JTextField getTfOrt() {
		if (tfOrt == null) {
			tfOrt = new JTextField();
			tfOrt.setBounds(188, 116, 96, 20);
			tfOrt.setColumns(10);
		}
		return tfOrt;
	}
	private JLabel getLblEmail() {
		if (lblEmail == null) {
			lblEmail = new JLabel("E-Mail:");
			lblEmail.setBounds(6, 219, 112, 14);
			lblEmail.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblEmail;
	}
	private JTextField getTfEmail() {
		if (tfEmail == null) {
			tfEmail = new JTextField();
			tfEmail.setBounds(128, 216, 156, 20);
			tfEmail.setColumns(10);
		}
		return tfEmail;
	}
	private JLabel getLblKontonr() {
		if (lblKontonr == null) {
			lblKontonr = new JLabel("Kontonummer:");
			lblKontonr.setBounds(6, 43, 112, 14);
			lblKontonr.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblKontonr;
	}
	private JLabel getLabel_1_1() {
		if (lblBlz == null) {
			lblBlz = new JLabel("Bankleitzahl:");
			lblBlz.setBounds(6, 68, 112, 14);
			lblBlz.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblBlz;
	}
	private JLabel getLblKreditinstitut() {
		if (lblKreditinstitut == null) {
			lblKreditinstitut = new JLabel("Kreditinstitut:");
			lblKreditinstitut.setBounds(6, 93, 112, 14);
			lblKreditinstitut.setFont(new Font("Lucida Sans Unicode", Font.BOLD, 11));
		}
		return lblKreditinstitut;
	}
	private JPanel getPanel_1() {
		if (panel_1 == null) {
			panel_1 = new JPanel();
			panel_1.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Abrechnungsbezogene Daten", TitledBorder.CENTER, TitledBorder.TOP, null, null));
			panel_1.setBounds(338, 16, 271, 130);
			panel_1.setLayout(null);
			panel_1.add(getLblKontonr());
			panel_1.add(getLabel_1_1());
			panel_1.add(getLblKreditinstitut());
			panel_1.add(getTfKontonr());
			panel_1.add(getTextField());
			panel_1.add(getTextField_1());
		}
		return panel_1;
	}
	private JPanel getPanel_2() {
		if (panel_2 == null) {
			panel_2 = new JPanel();
			panel_2.setBounds(16, 16, 290, 243);
			panel_2.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Pers\u00F6nliche Daten", TitledBorder.CENTER, TitledBorder.TOP, null, null));
			panel_2.setLayout(null);
			panel_2.add(getLabel_1());
			panel_2.add(getLblName());
			panel_2.add(getLblVorname());
			panel_2.add(getLblStrasse());
			panel_2.add(getLblPlzOrt());
			panel_2.add(getLblTelefonnummer());
			panel_2.add(getLblMobilnummer());
			panel_2.add(getLblGeburtsdatum());
			panel_2.add(getLblEmail());
			panel_2.add(getCbAnrede());
			panel_2.add(getTfName());
			panel_2.add(getTfVorname());
			panel_2.add(getTfStrasse());
			panel_2.add(getTfPlz());
			panel_2.add(getTfGeburtsdatum());
			panel_2.add(getTfTelefon());
			panel_2.add(getTfMobilnummer());
			panel_2.add(getTfOrt());
			panel_2.add(getTfEmail());
		}
		return panel_2;
	}
	private JTextField getTfKontonr() {
		if (tfKontonr == null) {
			tfKontonr = new JTextField();
			tfKontonr.setBounds(128, 90, 132, 20);
			tfKontonr.setColumns(10);
		}
		return tfKontonr;
	}
	private JTextField getTextField() {
		if (textField == null) {
			textField = new JTextField();
			textField.setColumns(10);
			textField.setBounds(128, 38, 132, 20);
		}
		return textField;
	}
	private JTextField getTextField_1() {
		if (textField_1 == null) {
			textField_1 = new JTextField();
			textField_1.setColumns(10);
			textField_1.setBounds(128, 63, 132, 20);
		}
		return textField_1;
	}
	private JPanel getLblStatus() {
		if (lblStatus == null) {
			lblStatus = new JPanel();
			lblStatus.setBounds(0, 438, 488, 24);
			lblStatus.add(getLabel());
		}
		return lblStatus;
	}
	private JLabel getLabel() {
		if (label == null) {
			label = new JLabel("Status");
			label.setVerticalAlignment(SwingConstants.TOP);
		}
		return label;
	}
	private JLabel getLabel_1_2() {
		if (lblDatum == null) {
			lblDatum = new JLabel("Dienstag , 20. November 2012");
			lblDatum.setHorizontalAlignment(SwingConstants.CENTER);
			lblDatum.setBounds(514, 439, 170, 23);
		}
		return lblDatum;
	}
	private JLabel getLabel_1_3() {
		if (lblTest == null) {
			lblTest = new JLabel("Test");
			lblTest.setBounds(6, 16, 255, 180);
		}
		return lblTest;
	}
	private JPanel getPanel() {
		if (panel == null) {
			panel = new JPanel();
			panel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Passfoto", TitledBorder.CENTER, TitledBorder.TOP, null, null));
			panel.setBounds(338, 170, 271, 173);
			panel.setLayout(null);
			panel.add(getLabel_1_3());
		}
		return panel;
	}
	private JButton getBtnSpeichern() {
		if (btnSpeichern == null) {
			btnSpeichern = new JButton("Speichern");
			btnSpeichern.setBounds(264, 392, 130, 35);
		}
		return btnSpeichern;
	}
}
